package main

import (
	"automation/service"
	"automation/util"
	"log"
)

type Operation interface {
	Start()
}

func main() {
	//检查配置
	util.CheckConfig()

	//配置操作
	operations := map[string]Operation{
		"reliste": service.Reliste{},
		"import":  service.Form{},
	}

	//是否在配置操作
	operation, ok := operations[util.Action]
	if !ok {
		log.Fatal("未知的操作")
	}
	operation.Start()

}
